using Cooking.Core.Services;
using StructureMap.Configuration.DSL;

namespace Cooking.Web.Code
{
    public class ServiceRegistry : Registry
    {
        protected override void configure()
        {
            Scan(scanner =>
                     {
                         scanner.AssemblyContainingType(typeof (IIngredientService));
                         scanner.IncludeNamespace("Cooking.Core.Services");
                         scanner.WithDefaultConventions();
                     }
                );
        }
    }
}